if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent))

 {

    window.location.href = "unpc.html";

    } else {

    window.location.href = "main.html";

    }